% This is part of the TFTB Reference Manual.
% Copyright (C) 1996 CNRS (France) and Rice University (US).
% See the file refguide.tex for copying conditions.


\markright{amtriang}
\section*{\hspace*{-1.6cm} amtriang}

\vspace*{-.4cm}
\hspace*{-1.6cm}\rule[0in]{16.5cm}{.02cm}
\vspace*{.2cm}



{\bf \large \sf Purpose}\\
\hspace*{1.5cm}
\begin{minipage}[t]{13.5cm}
Triangular amplitude modulation.
\end{minipage}
\vspace*{.5cm}


{\bf \large \sf Synopsis}\\
\hspace*{1.5cm}
\begin{minipage}[t]{13.5cm}
\begin{verbatim}
y = amtriang(N)
y = amtriang(N,t0)
y = amtriang(N,t0,T)
\end{verbatim}
\end{minipage}
\vspace*{.5cm}


{\bf \large \sf Description}\\
\hspace*{1.5cm}
\begin{minipage}[t]{13.5cm}
        {\ty amtriang} generates a triangular amplitude modulation 
        centered on a time {\ty t0}, and with a spread proportional to {\ty T}.
        This modulation is scaled such that {\ty y(t0)=1}.\\

\hspace*{-.5cm}\begin{tabular*}{14cm}{p{1.5cm} p{8.5cm} c}
Name & Description & Default value\\
\hline
        {\ty N}  & number of points\\
        {\ty t0} & time center       &          {\ty N/2}\\
        {\ty T}  & time spreading    &          {\ty 2*sqrt(N)}\\
  \hline {\ty y}  & signal\\
\hline
\end{tabular*}

\end{minipage}
\vspace*{1cm}


{\bf \large \sf Examples}
\begin{verbatim}
         z=amtriang(160);        plot(z);
         z=amtriang(160,90,40);  plot(z);
         z=amtriang(160,180,50); plot(z);
\end{verbatim}
\vspace*{.5cm}


{\bf \large \sf See Also}\\
\hspace*{1.5cm}
\begin{minipage}[t]{13.5cm}
\begin{verbatim}
amexpo1s, amexpo2s, amgauss, amrect.
\end{verbatim}
\end{minipage}



